package com.question.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.common.util.TablePage;
import com.question.entity.Explanation;
import com.question.entity.dto.ExplanationDTO;

public interface IExplService {
	public void saveOrUpdate(Explanation explanation,Long subjectId,String reference);
	public void delete(Long id);
	public TablePage<ExplanationDTO> findPage(Specification<Explanation> spec,Pageable pageable);
	public TablePage<Explanation> findRealPage(Specification<Explanation> spec,Pageable pageable);
	public Explanation findOne(Long id);
	public boolean isNumExist(Explanation explanation);
	public boolean isUsing(Long id);
}
